#ifndef ITEM_H
#define ITEM_H

#include "sprite.h"


class Item : public Sprite{
	
public:
	Item(const Vector2f& pos, const Vector2f& vel,const Frame* f);
	Item(const Sprite& s, const int t);

    ~Item(){cout<<"delete item"<<endl;}
    Frame* bindFrame(int t);
    int getType() const{
		return type;
	}
	void update(unsigned);
	void draw() const;
	
	// TYPE
	// 0 - SPEEDU
	// 1 - SPEEDD
	// 2 - LENGTHP
	// 3 - LENGTHM
	// 4 - BALL
	// 5 - LIFE
	// 6 - EXPLOSION
	// 7 - NEXT
	enum{SPEEDU,SPEEDD,LENGTHP,LENGTHM,BALL,LIFE,EXPLOSION,NEXT};
private:
	int type;
    Item(const Item&);
    Item& operator=(const Item&);

};	

#endif
